<!--

    Copyright (c) 2005, 2018 Oracle and/or its affiliates. All rights reserved.
    Portions Copyright &#169; [2017-2020] Payara Foundation and/or affiliates.

    This program and the accompanying materials are made available under the
    terms of the Eclipse Public License v. 2.0, which is available at
    http://www.eclipse.org/legal/epl-2.0.

    This Source Code may also be made available under the following Secondary
    Licenses when the conditions for such availability set forth in the
    Eclipse Public License v. 2.0 are satisfied: GNU General Public License,
    version 2 with the GNU Classpath Exception, which is available at
    https://www.gnu.org/software/classpath/license.html.

    SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0

-->
<!-- Portions Copyright [2019] [Payara Foundation and/or its affiliates] -->

<p><a id="ref-transactionservice" name="ref-transactionservice"></a><a id="GHJTS00002" name="GHJTS00002"></a></p>

<h4><a id="sthref14" name="sthref14"></a>Transaction Service</h4>
<a name="BEGIN" id="BEGIN"></a>
<p>Use the Transaction Service page to configure transaction recovery, timeouts, and logging.</p>
<p>The Transaction Service page contains the following options.</p>
<dl>
<dt>Load Defaults</dt>
<dd>
<p>Button to restore settings that have default values to their default values. Settings that do not have default values are not changed.</p>
</dd>
<dt>Configuration Name</dt>
<dd>
<p>The name of the configuration to which the settings on this page apply. This field is read only.</p>
</dd>
<dt>On Restart</dt>
<dd>
<p>If the Enabled checkbox is selected, the Payara Server attempts to recover incomplete transactions when the server is restarted. This option is disabled by default.</p>
</dd>
<dt>Transaction Timeout</dt>
<dd>
<p>Number of seconds the server waits before rolling back a transaction that has not completed. The default value is 0, meaning that the server waits indefinitely for a transaction to complete.</p>
</dd>
<dt>Retry Timeout</dt>
<dd>
<p>Number of seconds the Payara Server tries to connect to an unreachable server. The default value is 600 (10 minutes).</p>
</dd>
<dt>Transaction Log Location</dt>
<dd>
<p>The directory where server logs are kept. Transaction logs are kept in the <code>tx</code> subdirectory of the directory specified by this field. The default value is the directory specified by the Log Root field of the Domain Attributes page, which is located under the Advanced tab of the Payara Server node.</p>
</dd>
<dt>Heuristic Decision</dt>
<dd>
<p>Whether transactions that involve unreachable servers are to be committed or rolled back. The default value is Rollback. Committing indeterminate transactions can compromise the data integrity of your application.</p>
</dd>
<dt>Keypoint Interval</dt>
<dd>
<p>The number of transactions between keypoint operations, which compress the transaction log file. The default value is 65,536.</p>
</dd>
<dt>Additional Properties</dt>
<dd>
<p>Additional properties for the Transaction Service.</p>
</dd>
</dl>
<a id="sthref15" name="sthref15"></a>
<h5>Related Tasks</h5>
<ul>
<li>
<p><a href="task-configtransservice.html">To Configure the Transaction Service</a></p>
</li>
<li>
<p><a href="task-configtransrecovery.html">To Configure How the Payara Server Recovers Transactions</a></p>
</li>
<li>
<p><a href="task-settranstimeout.html">To Set a Transaction Timeout Value</a></p>
</li>
<li>
<p><a href="task-settranslog.html">To Set the Location of the Transaction Logs</a></p>
</li>
<li>
<p><a href="task-setkeyptinterval.html">To Set the Keypoint Interval</a></p>
</li>
</ul>


<small>Copyright &#169; 2005, 2017, Oracle and/or its affiliates. All rights reserved. <a href="docinfo.html">Legal Notices</a></small>
<small>Portions Copyright &#169; [2017-2020] Payara Foundation and/or affiliates.</small>
